import axios from "../libs/api.request";


export const getDepartmentList = ()=>{
  return axios.request({
      url: 'get_department_list',
      method: 'get'
    })
}

export const getNoticeList = (departmentId)=>{
  return axios.request({
      url: 'notice_list?departmentId'+departmentId,
      method: 'get'
    })
}

// tel: 132 pwd: 123 ['tel', 'pwd', 'token'] => ['pwd', 'tel'] => md5(pwd=123&tel=132 + apppid)
export const getOrderInfo = (orderId)=>{
  return axios.request({
      url: 'order_info?orderId='+orderId,
      method: 'get'
    })
}

export const getTaskList = ()=>{
  return axios.request({
      url: 'task_list',
      method: 'get'
    })
}

export const getTaskInfo = (id)=>{
  return axios.request({
      url: 'task_Info?id='+id,
      method: 'get'
    })
}

export const getWrongInfo = (id)=>{
  return axios.request({
      url: 'wrong_Info?id='+id,
      method: 'get'
    })
}

export const getWrongList = ()=>{
  return axios.request({
      url: 'wrong_list',
      method: 'get'
    })
}

export const getLeaderList = ()=>{
  return axios.request({
      url: 'leader_list',
      method: 'get'
    })
}

export const getStaffList = ()=>{
  return axios.request({
      url: 'staff_list',
      method: 'get'
    })
}

export const postMarkTask = (markData)=>{
  console.log(markData);
  return axios.request({
      url: 'task_mark',
      data: markData,
      method: 'post'
    })
}



export const modifyLeader = (modifyData)=>{
  return axios.request({
      url: 'modify_leader',
      data: modifyData,
      method: 'post'
    })
}

export const equipmentInfo = (kkscode)=>{
  return axios.request({
      url: 'equipment_info?KKScode='+kkscode,
      method: 'get'
    })
}

export const equipmentSubmit = (data)=>{
  console.log(data);
  return axios.request({
      url: 'equipment_submit',
      data:data,
      method: 'post'
    })
}

export const getReportList = ()=>{
  return axios.request({
      url: 'report_list',
      method: 'get'
    })
}

export const getPaperReportList = ()=>{
  return axios.request({
      url: 'report_paper_list',
      method: 'get'
    })
}

export const getReportInfo = ()=>{
  return axios.request({
      url: 'report_info',
      method: 'get'
    })
}

export const getPaperReportInfo = ()=>{
  return axios.request({
      url: 'paper_report_info',
      method: 'get'
    })
}

export const getReceiverList = ()=>{
  return axios.request({
      url: 'receiver_list',
      method: 'get'
    })
}


export const postReportInfo = (data)=>{
  return axios.request({
      url: 'submit_reportInfo',
      data: data,
      method: 'post'
    })
}

export const postPaperReportInfo = (data)=>{
  return axios.request({
      url: 'submit_paperReport_info',
      data:data,
      method: 'post'
    })
}


